<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page contentType="text/html;charset=UTF-8" language="java"  pageEncoding="UTF-8" %>
    <div class="data_list">
        <div class="data_list_title">
            <img src="${pageContext.request.contextPath}/static/images/list_icon.png"/>
            最新博客</div>

        <div class="datas">
            <ul>
            <c:forEach var="blog" items="${blogList}">
                <li style="margin-bottom: 30px">
                    <span class="date"><a href="${pageContext.request.contextPath}/blog/articles/${blog.id }.html"><fmt:formatDate value="${blog.releaseDate}" type="date" pattern="yyyy年MM月dd日"/></a></span>
                    <span class="title"><a href="${pageContext.request.contextPath}/blog/articles/${blog.id }.html">${blog.title}</a></span>
                    <span class="summary">摘要: ${blog.summary}...</span>
                  <span class="img">

						  		<c:forEach var="image" items="${blog.imageList }">
                                    <a href="/blog/articles/52.html">${image}</a>
                                    &nbsp;&nbsp;
                                </c:forEach>
					  	</span>
                    <span class="info">发表于 <fmt:formatDate value="${blog.releaseDate}" type="date" pattern="yyyy-MM-dd HH:mm"/> 阅读(${blog.clickHit}) 评论(${blog.replyHit}) </span>

                </li>
                <hr style="height:5px;border:none;border-top:1px dashed gray;padding-bottom:  10px;" />
            </c:forEach>
            </ul>

        </div>
</div>
<div>
    <nav>
        <ul class="pagination pagination-sm">
            ${pageCode }
        </ul>
    </nav>
</div>
